package app.config;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MysqlImpl implements ConnectionDao {

	@Override
	public Connection getConn() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
		} catch (ClassNotFoundException e) {
			return null;
		}
		try {
			return DriverManager
					.getConnection(
							"jdbc:mysql://localhost:3306/love?useUnicode=true&characterEncoding=utf8",
							"root", "00990000");
		} catch (SQLException e) {
			return null;
		}
	}

}
